/*
 * StuShowInfoJIF.java
 *
 * Created on __DATE__, __TIME__
 */

package Presentation;

import Interface_Bl.UserBlI;
import Vo.StuVo;

/**
 *
 * @author  __USER__
 */
public class StuShowInfoJIF extends javax.swing.JInternalFrame {
	UserBlI userBlI = null;

	/** Creates new form StuShowInfoJIF */
	public StuShowInfoJIF(UserBlI userBlI) {
		initComponents();
		this.userBlI = userBlI;
		this.setLocation(400, 300);
		initial();
	}

	private void initial() {
		StuVo stuVo = userBlI.returnStuInfo(userBlI.getId());
        JTF_name.setText(stuVo.getName());
        JTF_dep.setText(stuVo.getDep());
        JTF_grade.setText(""+stuVo.getGrade());
        JTF_identity.setText(stuVo.getIdentity());
        JTF_model1Score.setText(""+stuVo.getModel1Score());
        JTF_model2Score.setText(""+stuVo.getModel2Score());
        JTF_model3Score.setText(""+stuVo.getModel3Score());
        JTF_model4Score.setText(""+stuVo.getModel4Score());
	}
	
	@Override
	public void doDefaultCloseAction() {
		// TODO Auto-generated method stub
		LoginJF.frameState.StuShowInfoJIF--;
		super.doDefaultCloseAction();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		JL_name = new javax.swing.JLabel();
		JTF_name = new javax.swing.JTextField();
		JL_dep = new javax.swing.JLabel();
		JTF_dep = new javax.swing.JTextField();
		JL_grade = new javax.swing.JLabel();
		JTF_grade = new javax.swing.JTextField();
		JL_identity = new javax.swing.JLabel();
		JTF_identity = new javax.swing.JTextField();
		JL_model1Score = new javax.swing.JLabel();
		JTF_model1Score = new javax.swing.JTextField();
		JL_model2Score = new javax.swing.JLabel();
		JTF_model2Score = new javax.swing.JTextField();
		JL_model3Score = new javax.swing.JLabel();
		JTF_model3Score = new javax.swing.JTextField();
		JL_model4Score = new javax.swing.JLabel();
		JTF_model4Score = new javax.swing.JTextField();

		setClosable(true);
		setIconifiable(true);
		setTitle("\u5b66\u751f\u4e2a\u4eba\u4fe1\u606f");

		JL_name.setText("\u59d3\u540d");

		JTF_name.setEditable(false);

		JL_dep.setText("\u9662\u7cfb");

		JTF_dep.setEditable(false);

		JL_grade.setText("\u5e74\u7ea7");

		JTF_grade.setEditable(false);

		JL_identity.setText("\u8eab\u4efd");

		JTF_identity.setEditable(false);

		JL_model1Score
				.setText("\u901a\u8bc6\u901a\u4fee\u8bfe\u7a0b\u6210\u7ee9");

		JTF_model1Score.setEditable(false);

		JL_model2Score
				.setText("\u5b66\u79d1\u4e13\u4e1a\u8bfe\u7a0b\u6210\u7ee9");

		JTF_model2Score.setEditable(false);

		JL_model3Score
				.setText("\u5f00\u653e\u6027\u9009\u4fee\u8bfe\u7a0b\u6210\u7ee9");

		JTF_model3Score.setEditable(false);

		JL_model4Score
				.setText("\u6bd5\u4e1a\u8bba\u6587\u8bbe\u8ba1\u6210\u7ee9");

		JTF_model4Score.setEditable(false);

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						javax.swing.GroupLayout.Alignment.TRAILING,
						layout.createSequentialGroup()
								.addGap(43, 43, 43)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.TRAILING)
												.addGroup(
														layout.createSequentialGroup()
																.addGap(10, 10,
																		10)
																.addComponent(
																		JTF_model3Score,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		103,
																		Short.MAX_VALUE))
												.addGroup(
														javax.swing.GroupLayout.Alignment.LEADING,
														layout.createSequentialGroup()
																.addGap(10, 10,
																		10)
																.addComponent(
																		JTF_model1Score,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		103,
																		Short.MAX_VALUE))
												.addComponent(
														JL_model3Score,
														javax.swing.GroupLayout.Alignment.LEADING)
												.addComponent(
														JL_model1Score,
														javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														javax.swing.GroupLayout.Alignment.LEADING,
														layout.createSequentialGroup()
																.addComponent(
																		JL_grade)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		JTF_grade,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		84,
																		Short.MAX_VALUE))
												.addGroup(
														javax.swing.GroupLayout.Alignment.LEADING,
														layout.createSequentialGroup()
																.addComponent(
																		JL_name)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		JTF_name,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		84,
																		Short.MAX_VALUE)))
								.addGap(30, 30, 30)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		JL_dep)
																.addGap(18, 18,
																		18)
																.addComponent(
																		JTF_dep,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		85,
																		Short.MAX_VALUE))
												.addComponent(
														JTF_model2Score,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														127,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		JL_identity)
																.addGap(18, 18,
																		18)
																.addComponent(
																		JTF_identity,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		85,
																		Short.MAX_VALUE))
												.addComponent(
														JTF_model4Score,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														127, Short.MAX_VALUE)
												.addComponent(JL_model4Score)
												.addComponent(JL_model2Score))
								.addGap(99, 99, 99)));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														layout.createSequentialGroup()
																.addGap(17, 17,
																		17)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.TRAILING)
																				.addGroup(
																						layout.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.BASELINE)
																								.addComponent(
																										JL_dep)
																								.addComponent(
																										JTF_dep,
																										javax.swing.GroupLayout.PREFERRED_SIZE,
																										javax.swing.GroupLayout.DEFAULT_SIZE,
																										javax.swing.GroupLayout.PREFERRED_SIZE))
																				.addGroup(
																						layout.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.BASELINE)
																								.addComponent(
																										JL_name)
																								.addComponent(
																										JTF_name,
																										javax.swing.GroupLayout.PREFERRED_SIZE,
																										javax.swing.GroupLayout.DEFAULT_SIZE,
																										javax.swing.GroupLayout.PREFERRED_SIZE)))
																.addGap(18, 18,
																		18)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						JL_grade)
																				.addComponent(
																						JL_identity)
																				.addComponent(
																						JTF_grade,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						JTF_identity,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addGap(35, 35,
																		35)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						JL_model1Score)
																				.addComponent(
																						JL_model2Score))
																.addGap(30, 30,
																		30)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						JL_model3Score)
																				.addComponent(
																						JL_model4Score)))
												.addGroup(
														layout.createSequentialGroup()
																.addGap(138,
																		138,
																		138)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						JTF_model1Score,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						JTF_model2Score,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.PREFERRED_SIZE))))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addComponent(
														JTF_model3Score,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														JTF_model4Score,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addContainerGap(67, Short.MAX_VALUE)));

		pack();
	}// </editor-fold>
	//GEN-END:initComponents

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JLabel JL_dep;
	private javax.swing.JLabel JL_grade;
	private javax.swing.JLabel JL_identity;
	private javax.swing.JLabel JL_model1Score;
	private javax.swing.JLabel JL_model2Score;
	private javax.swing.JLabel JL_model3Score;
	private javax.swing.JLabel JL_model4Score;
	private javax.swing.JLabel JL_name;
	private javax.swing.JTextField JTF_dep;
	private javax.swing.JTextField JTF_grade;
	private javax.swing.JTextField JTF_identity;
	private javax.swing.JTextField JTF_model1Score;
	private javax.swing.JTextField JTF_model2Score;
	private javax.swing.JTextField JTF_model3Score;
	private javax.swing.JTextField JTF_model4Score;
	private javax.swing.JTextField JTF_name;
	// End of variables declaration//GEN-END:variables

}